﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using LogisticsBLL;
using Model;
using Newtonsoft.Json;

namespace WebLosgic.HeanderAJAX
{
    /// <summary>
    /// GetCostHanlder 的摘要说明
    /// </summary>
    public class GetCostHanlder : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            int SchedulingID = Convert.ToInt32(context.Request.QueryString["SchID"]);
            CostBLL cost = new CostBLL();
            Seching sech = cost.GetCost(SchedulingID);
            string Jonstr = JsonConvert.SerializeObject(sech);
            context.Response.ContentType = "text/plain";
            context.Response.Write(Jonstr);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}